/*
 * FileName ImageSource.cpp
*/

#include "stdafx.h"
#include "ImageSource.h"

namespace DeepZoomImage
{
	ImageSource::ImageSource ()
	: refcount(1)
	{
	}

	ImageSource::~ImageSource ()
	{
	}

	void ImageSource::Lock ()
	{

	}

	void ImageSource::Unlock ()
	{

	}

	gint32 ImageSource::GetPixelWidth ()
	{
		return 0;
	}

	void ImageSource::SetPixelWidth (gint32 width)
	{

	}

	gint32 ImageSource::GetPixelHeight ()
	{
		return 0;
	}

	void ImageSource::SetPixelHeight (gint32 height)
	{

	}

	cairo_surface_t* ImageSource::GetImageSurface ()
	{
		return NULL;
	}

	MoonSurface* ImageSource::GetSurface (Context *ctx)
	{
		return NULL;
	}

	void ImageSource::ref()
	{
		refcount++;
	}
	void ImageSource::unref()
	{
		refcount--;
		//v = refcount;
		if (refcount == 0)
			delete this;
	}
}